class RecommendModel {
  List<ItemData> itemData;

  RecommendModel({this.itemData});

  RecommendModel.fromJson(Map<String, dynamic> json) {
    if (json['itemData'] != null) {
      itemData = new List<ItemData>();
      json['itemData'].forEach((v) {
        itemData.add(new ItemData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.itemData != null) {
      data['itemData'] = this.itemData.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class ItemData {
  String typeName;
  ItemList itemList;

  ItemData({this.typeName, this.itemList});

  ItemData.fromJson(Map<String, dynamic> json) {
    typeName = json['typeName'];
    itemList = json['itemList'] != null
        ? new ItemList.fromJson(json['itemList'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['typeName'] = this.typeName;
    if (this.itemList != null) {
      data['itemList'] = this.itemList.toJson();
    }
    return data;
  }
}

class ItemList {
  List<Records> records;
  int total;
  int size;
  int current;
  List<Orders> orders;
  bool hitCount;
  bool searchCount;
  int pages;

  ItemList(
      {this.records,
      this.total,
      this.size,
      this.current,
      this.orders,
      this.hitCount,
      this.searchCount,
      this.pages});

  ItemList.fromJson(Map<String, dynamic> json) {
    if (json['records'] != null) {
      records = new List<Records>();
      json['records'].forEach((v) {
        records.add(new Records.fromJson(v));
      });
    }
    total = json['total'];
    size = json['size'];
    current = json['current'];
    if (json['orders'] != null) {
      orders = new List<Orders>();
      json['orders'].forEach((v) {
        orders.add(new Orders.fromJson(v));
      });
    }
    hitCount = json['hitCount'];
    searchCount = json['searchCount'];
    pages = json['pages'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.records != null) {
      data['records'] = this.records.map((v) => v.toJson()).toList();
    }
    data['total'] = this.total;
    data['size'] = this.size;
    data['current'] = this.current;
    if (this.orders != null) {
      data['orders'] = this.orders.map((v) => v.toJson()).toList();
          }
          data['hitCount'] = this.hitCount;
          data['searchCount'] = this.searchCount;
          data['pages'] = this.pages;
          return data;
        }
      }
      
class Orders {
  Orders.fromJson(v);
      
  toJson() {}
}

class Records {
  int vodId;
  int typeId;
  int typeId1;
  int groupId;
  String vodName;
  String vodSub;
  String vodEn;
  int vodStatus;
  String vodLetter;
  String vodColor;
  String vodTag;
  String vodClass;
  String vodPic;
  String vodPicThumb;
  String vodPicSlide;
  String vodActor;
  String vodDirector;
  String vodWriter;
  String vodBehind;
  String vodBlurb;
  String vodRemarks;
  String vodPubdate;
  int vodTotal;
  String vodSerial;
  String vodTv;
  String vodWeekday;
  String vodArea;
  String vodLang;
  String vodYear;
  String vodVersion;
  String vodState;
  String vodAuthor;
  String vodJumpurl;
  String vodTpl;
  String vodTplPlay;
  String vodTplDown;
  int vodIsend;
  int vodLock;
  int vodLevel;
  int vodCopyright;
  int vodPoints;
  int vodPointsPlay;
  int vodPointsDown;
  int vodHits;
  int vodHitsDay;
  int vodHitsWeek;
  int vodHitsMonth;
  String vodDuration;
  int vodUp;
  int vodDown;
  num vodScore;
  int vodScoreAll;
  int vodScoreNum;
  int vodTime;
  int vodTimeAdd;
  int vodTimeHits;
  int vodTimeMake;
  int vodTrysee;
  int vodDoubanId;
  num vodDoubanScore;
  String vodReurl;
  String vodRelVod;
  String vodRelArt;
  String vodPwd;
  String vodPwdUrl;
  String vodPwdPlay;
  String vodPwdPlayUrl;
  String vodPwdDown;
  String vodPwdDownUrl;
  String vodContent;
  String vodPlayFrom;
  String vodPlayServer;
  String vodPlayNote;
  String vodPlayUrl;
  String vodDownFrom;
  String vodDownServer;
  String vodDownNote;
  String vodDownUrl;
  int vodPlot;
  String vodPlotName;
  String vodPlotDetail;

  Records(
      {this.vodId,
      this.typeId,
      this.typeId1,
      this.groupId,
      this.vodName,
      this.vodSub,
      this.vodEn,
      this.vodStatus,
      this.vodLetter,
      this.vodColor,
      this.vodTag,
      this.vodClass,
      this.vodPic,
      this.vodPicThumb,
      this.vodPicSlide,
      this.vodActor,
      this.vodDirector,
      this.vodWriter,
      this.vodBehind,
      this.vodBlurb,
      this.vodRemarks,
      this.vodPubdate,
      this.vodTotal,
      this.vodSerial,
      this.vodTv,
      this.vodWeekday,
      this.vodArea,
      this.vodLang,
      this.vodYear,
      this.vodVersion,
      this.vodState,
      this.vodAuthor,
      this.vodJumpurl,
      this.vodTpl,
      this.vodTplPlay,
      this.vodTplDown,
      this.vodIsend,
      this.vodLock,
      this.vodLevel,
      this.vodCopyright,
      this.vodPoints,
      this.vodPointsPlay,
      this.vodPointsDown,
      this.vodHits,
      this.vodHitsDay,
      this.vodHitsWeek,
      this.vodHitsMonth,
      this.vodDuration,
      this.vodUp,
      this.vodDown,
      this.vodScore,
      this.vodScoreAll,
      this.vodScoreNum,
      this.vodTime,
      this.vodTimeAdd,
      this.vodTimeHits,
      this.vodTimeMake,
      this.vodTrysee,
      this.vodDoubanId,
      this.vodDoubanScore,
      this.vodReurl,
      this.vodRelVod,
      this.vodRelArt,
      this.vodPwd,
      this.vodPwdUrl,
      this.vodPwdPlay,
      this.vodPwdPlayUrl,
      this.vodPwdDown,
      this.vodPwdDownUrl,
      this.vodContent,
      this.vodPlayFrom,
      this.vodPlayServer,
      this.vodPlayNote,
      this.vodPlayUrl,
      this.vodDownFrom,
      this.vodDownServer,
      this.vodDownNote,
      this.vodDownUrl,
      this.vodPlot,
      this.vodPlotName,
      this.vodPlotDetail});

  Records.fromJson(Map<String, dynamic> json) {
    vodId = json['vodId'];
    typeId = json['typeId'];
    typeId1 = json['typeId1'];
    groupId = json['groupId'];
    vodName = json['vodName'];
    vodSub = json['vodSub'];
    vodEn = json['vodEn'];
    vodStatus = json['vodStatus'];
    vodLetter = json['vodLetter'];
    vodColor = json['vodColor'];
    vodTag = json['vodTag'];
    vodClass = json['vodClass'];
    vodPic = json['vodPic'];
    vodPicThumb = json['vodPicThumb'];
    vodPicSlide = json['vodPicSlide'];
    vodActor = json['vodActor'];
    vodDirector = json['vodDirector'];
    vodWriter = json['vodWriter'];
    vodBehind = json['vodBehind'];
    vodBlurb = json['vodBlurb'];
    vodRemarks = json['vodRemarks'];
    vodPubdate = json['vodPubdate'];
    vodTotal = json['vodTotal'];
    vodSerial = json['vodSerial'];
    vodTv = json['vodTv'];
    vodWeekday = json['vodWeekday'];
    vodArea = json['vodArea'];
    vodLang = json['vodLang'];
    vodYear = json['vodYear'];
    vodVersion = json['vodVersion'];
    vodState = json['vodState'];
    vodAuthor = json['vodAuthor'];
    vodJumpurl = json['vodJumpurl'];
    vodTpl = json['vodTpl'];
    vodTplPlay = json['vodTplPlay'];
    vodTplDown = json['vodTplDown'];
    vodIsend = json['vodIsend'];
    vodLock = json['vodLock'];
    vodLevel = json['vodLevel'];
    vodCopyright = json['vodCopyright'];
    vodPoints = json['vodPoints'];
    vodPointsPlay = json['vodPointsPlay'];
    vodPointsDown = json['vodPointsDown'];
    vodHits = json['vodHits'];
    vodHitsDay = json['vodHitsDay'];
    vodHitsWeek = json['vodHitsWeek'];
    vodHitsMonth = json['vodHitsMonth'];
    vodDuration = json['vodDuration'];
    vodUp = json['vodUp'];
    vodDown = json['vodDown'];
    vodScore = json['vodScore'];
    vodScoreAll = json['vodScoreAll'];
    vodScoreNum = json['vodScoreNum'];
    vodTime = json['vodTime'];
    vodTimeAdd = json['vodTimeAdd'];
    vodTimeHits = json['vodTimeHits'];
    vodTimeMake = json['vodTimeMake'];
    vodTrysee = json['vodTrysee'];
    vodDoubanId = json['vodDoubanId'];
    vodDoubanScore = json['vodDoubanScore'];
    vodReurl = json['vodReurl'];
    vodRelVod = json['vodRelVod'];
    vodRelArt = json['vodRelArt'];
    vodPwd = json['vodPwd'];
    vodPwdUrl = json['vodPwdUrl'];
    vodPwdPlay = json['vodPwdPlay'];
    vodPwdPlayUrl = json['vodPwdPlayUrl'];
    vodPwdDown = json['vodPwdDown'];
    vodPwdDownUrl = json['vodPwdDownUrl'];
    vodContent = json['vodContent'];
    vodPlayFrom = json['vodPlayFrom'];
    vodPlayServer = json['vodPlayServer'];
    vodPlayNote = json['vodPlayNote'];
    vodPlayUrl = json['vodPlayUrl'];
    vodDownFrom = json['vodDownFrom'];
    vodDownServer = json['vodDownServer'];
    vodDownNote = json['vodDownNote'];
    vodDownUrl = json['vodDownUrl'];
    vodPlot = json['vodPlot'];
    vodPlotName = json['vodPlotName'];
    vodPlotDetail = json['vodPlotDetail'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['vodId'] = this.vodId;
    data['typeId'] = this.typeId;
    data['typeId1'] = this.typeId1;
    data['groupId'] = this.groupId;
    data['vodName'] = this.vodName;
    data['vodSub'] = this.vodSub;
    data['vodEn'] = this.vodEn;
    data['vodStatus'] = this.vodStatus;
    data['vodLetter'] = this.vodLetter;
    data['vodColor'] = this.vodColor;
    data['vodTag'] = this.vodTag;
    data['vodClass'] = this.vodClass;
    data['vodPic'] = this.vodPic;
    data['vodPicThumb'] = this.vodPicThumb;
    data['vodPicSlide'] = this.vodPicSlide;
    data['vodActor'] = this.vodActor;
    data['vodDirector'] = this.vodDirector;
    data['vodWriter'] = this.vodWriter;
    data['vodBehind'] = this.vodBehind;
    data['vodBlurb'] = this.vodBlurb;
    data['vodRemarks'] = this.vodRemarks;
    data['vodPubdate'] = this.vodPubdate;
    data['vodTotal'] = this.vodTotal;
    data['vodSerial'] = this.vodSerial;
    data['vodTv'] = this.vodTv;
    data['vodWeekday'] = this.vodWeekday;
    data['vodArea'] = this.vodArea;
    data['vodLang'] = this.vodLang;
    data['vodYear'] = this.vodYear;
    data['vodVersion'] = this.vodVersion;
    data['vodState'] = this.vodState;
    data['vodAuthor'] = this.vodAuthor;
    data['vodJumpurl'] = this.vodJumpurl;
    data['vodTpl'] = this.vodTpl;
    data['vodTplPlay'] = this.vodTplPlay;
    data['vodTplDown'] = this.vodTplDown;
    data['vodIsend'] = this.vodIsend;
    data['vodLock'] = this.vodLock;
    data['vodLevel'] = this.vodLevel;
    data['vodCopyright'] = this.vodCopyright;
    data['vodPoints'] = this.vodPoints;
    data['vodPointsPlay'] = this.vodPointsPlay;
    data['vodPointsDown'] = this.vodPointsDown;
    data['vodHits'] = this.vodHits;
    data['vodHitsDay'] = this.vodHitsDay;
    data['vodHitsWeek'] = this.vodHitsWeek;
    data['vodHitsMonth'] = this.vodHitsMonth;
    data['vodDuration'] = this.vodDuration;
    data['vodUp'] = this.vodUp;
    data['vodDown'] = this.vodDown;
    data['vodScore'] = this.vodScore;
    data['vodScoreAll'] = this.vodScoreAll;
    data['vodScoreNum'] = this.vodScoreNum;
    data['vodTime'] = this.vodTime;
    data['vodTimeAdd'] = this.vodTimeAdd;
    data['vodTimeHits'] = this.vodTimeHits;
    data['vodTimeMake'] = this.vodTimeMake;
    data['vodTrysee'] = this.vodTrysee;
    data['vodDoubanId'] = this.vodDoubanId;
    data['vodDoubanScore'] = this.vodDoubanScore;
    data['vodReurl'] = this.vodReurl;
    data['vodRelVod'] = this.vodRelVod;
    data['vodRelArt'] = this.vodRelArt;
    data['vodPwd'] = this.vodPwd;
    data['vodPwdUrl'] = this.vodPwdUrl;
    data['vodPwdPlay'] = this.vodPwdPlay;
    data['vodPwdPlayUrl'] = this.vodPwdPlayUrl;
    data['vodPwdDown'] = this.vodPwdDown;
    data['vodPwdDownUrl'] = this.vodPwdDownUrl;
    data['vodContent'] = this.vodContent;
    data['vodPlayFrom'] = this.vodPlayFrom;
    data['vodPlayServer'] = this.vodPlayServer;
    data['vodPlayNote'] = this.vodPlayNote;
    data['vodPlayUrl'] = this.vodPlayUrl;
    data['vodDownFrom'] = this.vodDownFrom;
    data['vodDownServer'] = this.vodDownServer;
    data['vodDownNote'] = this.vodDownNote;
    data['vodDownUrl'] = this.vodDownUrl;
    data['vodPlot'] = this.vodPlot;
    data['vodPlotName'] = this.vodPlotName;
    data['vodPlotDetail'] = this.vodPlotDetail;
    return data;
  }
}
